package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.ProcesscarddetailMapper;
import com.ruoyi.business.domain.Processcarddetail;
import com.ruoyi.business.service.IProcesscarddetailService;

/**
 * 工艺文件明细Service业务层处理
 * 
 * @author DL
 * @date 2025-06-30
 */
@Service
public class ProcesscarddetailServiceImpl implements IProcesscarddetailService 
{
    @Autowired
    private ProcesscarddetailMapper processcarddetailMapper;

    /**
     * 查询工艺文件明细
     * 
     * @param ID 工艺文件明细主键
     * @return 工艺文件明细
     */
    @Override
    public Processcarddetail selectProcesscarddetailByID(String ID)
    {
        return processcarddetailMapper.selectProcesscarddetailByID(ID);
    }

    /**
     * 查询工艺文件明细列表
     * 
     * @param processcarddetail 工艺文件明细
     * @return 工艺文件明细
     */
    @Override
    public List<Processcarddetail> selectProcesscarddetailList(Processcarddetail processcarddetail)
    {
        return processcarddetailMapper.selectProcesscarddetailList(processcarddetail);
    }

    /**
     * 新增工艺文件明细
     * 
     * @param processcarddetail 工艺文件明细
     * @return 结果
     */
    @Override
    public int insertProcesscarddetail(Processcarddetail processcarddetail)
    {
        return processcarddetailMapper.insertProcesscarddetail(processcarddetail);
    }

    /**
     * 修改工艺文件明细
     * 
     * @param processcarddetail 工艺文件明细
     * @return 结果
     */
    @Override
    public int updateProcesscarddetail(Processcarddetail processcarddetail)
    {
        return processcarddetailMapper.updateProcesscarddetail(processcarddetail);
    }

    /**
     * 批量删除工艺文件明细
     * 
     * @param IDs 需要删除的工艺文件明细主键
     * @return 结果
     */
    @Override
    public int deleteProcesscarddetailByIDs(String[] IDs)
    {
        return processcarddetailMapper.deleteProcesscarddetailByIDs(IDs);
    }

    /**
     * 删除工艺文件明细信息
     * 
     * @param ID 工艺文件明细主键
     * @return 结果
     */
    @Override
    public int deleteProcesscarddetailByID(String ID)
    {
        return processcarddetailMapper.deleteProcesscarddetailByID(ID);
    }

    @Override
    public int updateProcesscarddetailSetFlag() {
        return processcarddetailMapper.updateProcesscarddetailSetFlag();
    }

    @Override
    public int updateEditLaserPowerSet(Processcarddetail processcarddetail) {
        return processcarddetailMapper.updateEditLaserPowerSet(processcarddetail);
    }
}
